# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-zipp
_pkgname=zipp
pkgver=1.1.1
pkgrel=2
epoch=1
pkgdesc='Backport of pathlib-compatible object wrapper for zip files.'
url='https://pypi.org/project/zipp/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-more-itertools')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('5fa690d011c86ac3269908b70c0635ab3359ccf52cb22b9f904b4d6cfef4fa9396f5824a8dcce3643890f5728fe6aa1048370a6ad0ef9f706e6b70a61fdb7c87')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

